var mysql = require("mysql");
var connection = mysql.createConnection({
  host: "127.0.0.1",
  user: "root",
  port: "3308",
  password: "123456",
  database: "test",
});

connection.connect();

connection.query("SELECT * FROM  User", function (error, results, fields) {
  if (error) throw error;
  console.log("The solution is: ", results[0].solution);
});
